home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / show / jpgagasr.lha / ppm2aga / ppm2AGA.doc < prev    next >
Encoding:
Text File  |  1994-06-05  |  10.1 KB  |  309 lines

  1.  
  2.                          ppm2AGA 1.3 by Günther Röhrich
  3.                          ******************************
  4.  
  5. ATTENTION: At the end of this file you will find my correct EMAIL-address.
  6. (The address from the 1.0 - release is wrong) 
  7.  
  8. ppm2AGA ist a program for converting the ppm, pgm and pbm picture format into
  9. the IFF-ILBM format. For owners of an AGA-Amiga it is now possible to create
  10. high quality pictures without having to pay much money for a commercial image
  11. processing software. Together with the NETPBM-package it is possible to convert
  12. every other picture format and to do some basic image processing.
  13.  
  14. The advantages of ppm2AGA:
  15. - very high quality in the HAM8-mode
  16.   (better than some commercial programs)
  17. - processing pictures that are larger than the available memory is possible
  18. - saving to the Clipboard is possible
  19. - colormaps with full 24 Bit color precision are supported
  20. - the source is available
  21. - runs on all Amiga's  (even with KS 1.2/1.3 if iffparse.library V37 is
  22.   available)
  23.  
  24.  
  25. This program is Freeware with the following restrictions:
  26.  
  27. Some parts of the program are taken from the NETPBM-package and are therefore
  28. Copyright (C) 1989, 1991 by Jef Poskanzer. These parts are heavily modified.
  29.  
  30. This is allowed by the original author as you can read in the following text
  31. written by him:
  32.  
  33. Permission to use, copy, modify, and distribute this software and its
  34. documentation for any purpose and without fee is hereby granted, provided
  35. that the above copyright notice appear in all copies and that both that
  36. copyright notice and this permission notice appear in supporting
  37. documentation.  This software is provided "as is" without express or
  38. implied warranty.
  39.  
  40. If you modify or redistribute ppm2AGA you have to take care of this
  41. permission notice. The files in the directory "Developer" are written
  42. completely by me and they are therefore not covered by the copyright notice.
  43. You can do what you want with them.
  44.  
  45.  
  46. I have to thank the following persons:
  47.  
  48. Jef Poskanzer (jef@well.sf.ca.us):
  49.  for the development of the ppm-format and the pbm-software
  50.  
  51. Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de):
  52.  for the Amiga-specific parts of NETPBM and for ppmtoilbm.c
  53.  
  54. Johan Widen (jw@jwdata.se):
  55.  for the chunky->planar conversion routine in ppmtoilbm.c
  56.  
  57. Paul Heckbert:
  58.  the color quantizing routine in ppmquant.c is based on his article in
  59.  "SIGGRAPH '82 Proceedings", p. 297
  60.  
  61. The Independent JPEG Group (jpeg-info@uunet.uu.net):
  62.  for the source for decoding/encoding the JPEG-format
  63.  
  64. ***********************************************************************
  65.  
  66. I have created two versions of the program:
  67.  
  68. ppm2AGA.000 for 68000 and 68010 processors, it runs on all others too
  69. ppm2AGA.020 for 68020 or higher processors
  70.  
  71. I don't know if the 68000-version works because I don't have a 68000-based
  72. Amiga to test it. As operating system you will need OS 1.3 or higher.
  73. (With OS 1.3 you will need iffparse.library V37 which is available on the
  74. Workbench 2.0 disk.)
  75.  
  76. The programs with the ending .gcc are much faster but they need
  77. ixemul.library in the LIBS: directory.
  78.  
  79.  
  80. Invoking ppm2AGA:
  81.  
  82.   ppm2AGA inputfile outputfile options
  83.  
  84.  
  85. inputfile
  86. *********
  87.  
  88. The name of the file that should be read. Supported picture formats are:
  89. PPM - color, 24 bit/pixel (16Meg colors)
  90. PGM - greyscale, 8 bit/pixel (256 greyscales)
  91. PBM - black/white, 1 bit/pixel
  92. Both binary and ASCII formats are accepted. More informations can be found
  93. in the NETPBM-package.
  94.  
  95.  
  96. outputfile
  97. **********
  98.  
  99. This is the name of the IFF-ILBM file that should be created. If you use -cn
  100. as a name then the file will be written to the Clipboard with unit number n.
  101. (You should normally use unit number 0.)
  102.  
  103.  
  104. options
  105. *******
  106.  
  107. All options are case-insensitive. If they are not set then internal default
  108. values will be used.
  109.  
  110.  
  111. -HAM8 (default)
  112.  
  113. Use the HAM8 conversion method. This allows a total of 262144 different colors
  114. for the created picture.
  115.  
  116.  
  117. -HAM6
  118.  
  119. Use HAM6-mode. The quality is not very good (compared to other programs). The
  120. created picture may have max. 4096 colors. You can use the -FS option for this
  121. mode.
  122.  
  123.  
  124. -CMAPn
  125.  
  126. Use the colormap conversion method with n bitplanes. (max. 8) The created
  127. pictures will have max. 2^n colors out of about 16 millions.
  128. If you display the picture on an ECS/OCS machine with the original hardware 
  129. then the picture will not show the original colors because these machines only
  130. support a color selection out of 4096 colors.
  131. You can use the -FS option with this mode.
  132.  
  133.  
  134. -E
  135.  
  136. (Only for use in combination with the -CMAPn option.)
  137. Use this option when you know that the ppm-file has a limited number of colors.
  138. (less than 10000) This is for example the case when the ppm-file results from
  139. a colormapped picture format like GIF, BMP, etc.
  140. This option ensures that the original colors will be preserved. When converting
  141. the pgm-format this option will be set automatically because pgm-files have max.
  142. 256 greyscales.
  143.  
  144.  
  145. -FS
  146.  
  147. Use Floyd-Steinberg dithering. This may enhance the picture qualitiy.
  148. (Using this with the HAM8-mode has no effect)
  149.  
  150.  
  151. -Mx
  152.  
  153. Load pictures up to x size into memory. (default: 1000000)
  154.  
  155.  
  156. -2 
  157.  
  158. Use two-pass processing in the HAM6/HAM8 mode. This gives slightly better
  159. results. With digitized pictures you will not see any difference in most
  160. cases.
  161. (Version 1.0 of ppm2AGA always used two passes.)
  162.  
  163.  
  164. -D
  165.  
  166. Display the picture during processing. You need OS 3.0 or higher. If the
  167. screen cannot be opened processing will continue without display. To move
  168. the screen around with the mouse you have to activate it first. It also
  169. has a hidden drag bar and depth gadget. 
  170.  
  171.  
  172. -VGA
  173.  
  174. The picture will always use the VGA screenmode (also called 'multiscan').
  175. If your machine does not support this mode you will have problems showing
  176. the picture. Use this option when you know that the picture was intended for
  177. displaying on a PC or other machines with quadratic screen resolution.
  178.  
  179. NOTE: With 'quadratic' I don't mean that the screen has the same number of
  180. pixels in horizontal and vertical direction. (e.g. 1024x1024)
  181. I mean that a square composed of e.g. 100x100 pixels will be shown as a
  182. square on the screen. Because a usual picture tube has a ratio of 4 to 3
  183. the screen's resolution must be a multiple of that. (e.g. 640x480 because
  184.  
  185.  640   4
  186.  --- = - )
  187.  480   3
  188.  
  189.  
  190. -jpegAGA
  191.  
  192. Instead of an IFF-ILBM file a map-file for the program jpegAGA will be created.
  193. Normally, map-files are created by using a shell script. See the documentation
  194. to jpegAGA for more.
  195.  
  196.  
  197.  
  198. If you don't know what options to use to get the best quality make three
  199. conversions with the options: -HAM8, -CMAP8, -CMAP8 -FS and compare the
  200. results. For testing purposes I have included the file colors.ppm which
  201. has been created with the POV-raytracer.
  202.  
  203. There is also a JPEG decompression program included. It converts JPEG
  204. pictures to the ppm format. To use it enter:
  205.  
  206.  djpeg inputfile outputfile
  207.  
  208. In some cases djpeg will try to store temporary files to JPEGTMP:, you
  209. have then to assign this directory to somewhere on your hard disk.
  210. (for example assign JPEGTMP: HD:T)
  211. For more informations read the included documentation.
  212.  
  213.  
  214. History
  215. *******
  216.  
  217. 1.0 - 19-Apr-1994
  218.     
  219.     - first public release
  220.  
  221.  
  222. 1.1 - 5-May-1994
  223.  
  224.     - added -2 option
  225.     - one-pass processing is now the default in HAM6/HAM8 mode
  226.       (use the -2 option to get the same results as version 1.0)
  227.     - added -D option to display the picture during processing
  228.     - the documentation now contains my correct EMAIL-address
  229.  
  230.  
  231. 1.2 - 15-May-1994
  232.  
  233.     - autoscroll bug fixed (forgot to set the SA_Overscan Tagitem)
  234.     - added -VGA option
  235.  
  236.  
  237. 1.3 - 4-June-1994
  238.  
  239.     - added -jpegAGA option for creating map-files for the program jpegAGA
  240.  
  241.  
  242.  
  243. Announcement
  244. ************
  245.  
  246. The actual version of this program does not offer very much. My spare time
  247. is very limited because I am now studying Electrical Engineering at the Uni-
  248. versity Stuttgart. Therefore I am searching for other developers to cooperate
  249. with me and beta-testers for testing purposes. If you want to join in then
  250. please contact me. I will then create a detailed description of the source.
  251.  
  252. To recompile the source you need the newiff package from Commodore.
  253. V37 is available on Fish-disk 705 and V39 on the "3.1 Amiga Developer Update"
  254. disks. If you find a bug, a Mungwall/Enforcer hit, or if you have some sugges-
  255. tions for additional features then send me a message.
  256.  
  257. Future plans:
  258. - graphical user interface
  259. - support for animations, especially converting MPEG to IFF-ANIM in HAM8 mode
  260.   (This will be done next.)
  261. - support for other picture formats and basic image processing
  262.   (scaling, clipping, etc.)
  263. - ARexx-port
  264. - documentation in TeX-DVI and AmigaGuide format
  265. - complete (and correct) translation of the German documentation
  266. - fast ppm-viewer using the HAM8-mode with fixed colormap and doubled horizontal
  267.   resolution for higher quality, perhaps as datatype
  268.   (If you don't understand what I mean then send me a note)
  269. - using the colormap from other pictures instead of computing it
  270. - etc.
  271.  
  272.  
  273. To contact me write to:
  274.  
  275.   electronic mail:                                  normal mail:
  276.   ****************                                  ************
  277.  
  278.  Guenther@studbox.uni-stuttgart.de                  Günther Röhrich
  279.      (Internet EMAIL)                               Lerchenbergstr. 4
  280.                                                     73733 Esslingen
  281.                                                         Germany
  282.  
  283. NOTE: The EMAIL address from version 1.0 was wrong.
  284.  
  285. If you don't get an answer to a EMAIL within 3 weeks then try it again
  286. with normal mail.
  287.  
  288.  
  289. Here is how to get all the stuff I mentioned in the doc:
  290. ********************************************************
  291.  
  292. The NETPBM-package and the JPEG-source are available via FTP.
  293. (for example from ftp.uni-stuttgart.de)
  294.  
  295. NETPBM: ftp.uni-stuttgart.de in pub/systems/amiga/aminet/gfx/pbm
  296.         (or on all the other Aminet mirrors)
  297.         ftp.uni-oldenburg.de in ?
  298.  
  299. JPEG:   ftp.uu.net in graphics/jpeg
  300.         
  301.  
  302. If you have no other possibility you can get everything directly from me.
  303.  
  304. In the document "Info.Developer" you can read how to get other developer
  305. material, especially the "3.1 Amiga Developer Update".
  306.  
  307. NOTE: Commodore does not exist any more, I don't know if it is still possible
  308. to get developer materials. Try to contact the German company Hirsch & Wolf oHG.
  309.